package cn.factorybox.item.mapper;


import cn.factorybox.model.entity.CrestValue;
import cn.factorybox.model.entity.DeviceData;
import cn.factorybox.model.entity.FactoryDeviceData;
import cn.factorybox.model.entity.RfidDeviceData;

import java.util.List;
import java.util.Map;

/**
 * @author flypig
 * @version 1.0
 * @date 2020-03-04 17:44
 */
public interface DeviceDataMapper {

    List<Map<String,Object>> selectList(Map<String,Object> map);
    List<DeviceData> selectTodayList(String fSerialNumber);

    List<DeviceData> selectYesterdayList(String fSerialNumber);

    DeviceData getNewData(String fSerialNumber);

    int saveJson(DeviceData deviceData);

    DeviceData testGetResult(String fSerialNumber);

    CrestValue getCrestValue(String fSerialNumber);

    List<Map<String, Object>> selectHundredList(String fSerialNumber);

    int deletedata(String id);

    List<Map<String,Object>> selectTenTempDatas(String id);

    List<DeviceData> selectWeekDatas(Map<String, Object> params);

    List<DeviceData> selectMonthDatas(Map<String, Object> params);

    int saveRfid(RfidDeviceData deviceData);
}
